<div style="display: none">{include file="header.html"}</div>
<script type="text/javascript">

</script>

<style>
.infoTable label{color:#444;}
html,body{background: #fff;}
.infoTable{width:100%;}
.info th {
    text-align: right;
    padding-left: 40px;
	width:inherit;
}
.info{margin:0;}
</style>

<div class="info">
	
	<form method="post" enctype="multipart/form-data" action="index.php?app=waybill&act=hauledit">
<input type="hidden" value="{$waybill.wm_tid}" name="wm_tid">
<div class="jui-cut-label fn-mt25">
	        <div class="jui-message-bar">运程信息
	        </div>
	    </div>
	  
	    {foreach from=$haullist item=h}
	    <div style="">
	    <table class="infoTable">
	    <tr>
				<th class="paddingT15">运程:</th>
				<td class="paddingT15 wordSpacing5">
				{$h.h_name}
					
					<input type="hidden" name="haul[{$h.h_tid}][h_tid]" value="{$h.h_tid}" />
					</td>
					
					<th class="paddingT15">联系人:
				</th>
				<td class="paddingT15 wordSpacing5">{$h.h_linkman}</td>
					
						<th class="paddingT15">电话:
				</th>
				<td class="paddingT15 wordSpacing5">{$h.h_linkman_tel}</td>
			
			<th class="paddingT15">确认类型:
				</th>
				<td class="paddingT15 wordSpacing5">{$typelist[$h.h_type]}
				</td>
				
			</tr>


			<tr>
<th class="paddingT15">状态:</th>
				<td class="paddingT15 wordSpacing5" colspan="3">
				<input
					class="infoTableInput" type="text" value="{if $h.h_finished==0}未开始{/if}{if $h.h_finished==-1}异常{/if}{if $h.h_finished==2}完成{/if}" readonly="readonly" style="border: 0"/>
					</td>
					<th class="paddingT15">时间:</th>
				<td class="paddingT15 wordSpacing5" colspan="3">
					{if $h.h_required_service_date}{$h.h_required_service_date|date:Y-m-d H:i}{else}-{/if}
					</td>
			</tr>
				
<tr>
<th class="paddingT15">要求:</th>
				<td class="paddingT15 wordSpacing5" colspan="3">
				{$h.h_note}
					</td>
					<th class="paddingT15">地址:</th>
				<td class="paddingT15 wordSpacing5" colspan="3">
				{$h.h_address}
					</td>
			</tr>
		</table>
		<div style="background: #f3f7fa;padding: 20px 0 20px 100px" class="itemdiv">
		{foreach from=$h.item item=i name=it}
		<div style="padding: 15px 0;border-bottom: 1px solid #d3dae0">
		<input type="hidden" name="haul[{$h.h_tid}][item][{$i.hc_tid}][hc_tid]" value="{$i.hc_tid}" />
		<span style="background: #ccccce;display: block;padding: 8px 12px;float: left">{$smarty.foreach.it.iteration}</span> 
		{if $h.h_finished<2}
		<p style="float: left;margin: 0 40px">操作：{$ctype[$i.h_collect_type]}</p>
		<p style="float: left;margin: 0 40px">说明：{$i.h_collect_des}</p>
		{else}
		<p style="float: left;margin: 0 40px">
		{if $i.h_collect_type==0}扫描{/if}
		{if $i.h_collect_type==1}输入{/if}
		{if $i.h_collect_type==2}数字输入{/if}
		{if $i.h_collect_type==3}拍照{/if}
		{if $i.h_collect_type==4}录音{/if}
		</p>
		<p style="float: left;margin: 0 40px">{$i.h_collect_des}</p>
		{if $i.h_collect_type<3}
		<p style="float: left;margin: 0 40px">{$i.h_collect_val}</p>
		{/if}
		{if $i.h_collect_type==3&&$i.ar!=null}
		{foreach from=$i.ar item=a}
		<a href="{$site_url}/{$a}" target="_blank"><img src="{$site_url}/{$a}" style="height:100px;width:100px"/></a>
		{/foreach}
		{/if}
		
		{if $i.h_collect_type==4&&$i.ar!=null}
		{foreach from=$i.ar item=a}
		<audio controls="controls">

		<source src="{$site_url}/{$a}" type="audio/ogg">
		
		你的浏览器太老了，请更新否则没法听语音
		</audio>
		{/foreach}
		{/if}
		{/if}
		<div style="clear: both"></div>
		</div>
		{/foreach}
		<div style="clear: both"></div>
		</div>
		</div>
		{/foreach}
		
	</form>
	
</div>